package com.makenv.dao;

import com.makenv.domain.Video;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface VideoMapper {

    List<Video> showVideoList(@Param("startRow") int startRow,
                             @Param("num") int num, @Param("bookName") String bookName);

    int getVideoSum();

    int getSearchVideoSum(@Param("bookName") String bookName);

    int insert(Video video);

    int deleteByPrimaryKey(int id);

    int updateByPrimaryKey(Video video);
}
